package com.hwl.lab.repository;

import com.hwl.lab.entity.Area;
import com.hwl.lab.entity.UserAndRole;
import org.springframework.data.jpa.repository.JpaRepository;

import javax.transaction.Transactional;
import java.util.List;

public interface AreaRepository extends JpaRepository<Area,Long> {
    @Transactional
    Area findByAreaid(String areaid);
    @Transactional
    void deleteByAreaid(String areaid);
    @Transactional
    List<Area> findByLevel(String level);
}
